#include "../head.h"


// int kill(pid_t pid, int sig);
// 发送信号sig给进程pid

int main()
{
    printf("main\n");

    pid_t pid = fork();

    if (pid == 0)
    {
        while (1)
        {
            printf("child\n");
            sleep(1);
        }
    }
    if(pid > 0)
    {
        sleep(5);
        printf("kill\n");
        kill(pid, SIGKILL);
    }


}